﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TCL.EO
{
    [Serializable()]
    public class FacebookProxyEO
    {
        public class RequestEO
        {
            public String AccessToken { get; set; }
            public String AppId { get; set; }
            public String AppSecret { get; set; }
            public String DefaultVersion { get; set; }
            public Boolean IsSecureConnection { get; set; }
            public String SubscriptionVerifyToken { get; set; }
            public Boolean UseFacebookBeta { get; set; }
            public String Version { get; set; }

            public String Query { get; set; }
            public Int32 Type { get; set; }

            public RequestEO(Facebook.FacebookClient FBClient, String _sQuery, Int32 _Type)
            {
                this.AccessToken = FBClient.AccessToken;
                this.AppId = FBClient.AppId;
                this.AppSecret = FBClient.AppSecret;
                //this.DefaultVersion = FBClient.DefaultVersion;
                this.IsSecureConnection = FBClient.IsSecureConnection;
                this.SubscriptionVerifyToken = FBClient.SubscriptionVerifyToken;
                this.UseFacebookBeta = FBClient.UseFacebookBeta;
                this.Version = FBClient.Version;

                this.Query = _sQuery;
                this.Type = _Type;
            }

            public RequestEO()
            {
            }
        }

        public class ResponseEO
        {
            public String Content { get; set; }
            public String Error { get; set; }

            public ResponseEO(String _Content, String _Error)
            {
                this.Content = _Content;
                this.Error = _Error;
            }

            public ResponseEO()
            {
            }
        }

        //public FacebookProxyEO(Int32 _iType, String _sQuery, String _sToken, String _sContent, String _sError)
        //{
        //    this.iType = _iType;
        //    this.sQuery = _sQuery;
        //    this.sToken = _sToken;
        //    this.sContent = _sContent;
        //    this.sError = _sError;
        //}

        //public FacebookProxyEO(Int32 _iType, String _sQuery, String _sToken)
        //{
        //    this.iType = _iType;
        //    this.sQuery = _sQuery;
        //    this.sToken = _sToken;
        //}

        //public FacebookProxyEO()
        //{
        //}
    }
}
